package com.itheima.service;

import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 员工管理
 */
public interface EmpService {

    Emp FindByUsernameAndPassword(Emp emp);


    PageBean find(String name, Short gender, LocalDateTime begin, LocalDateTime end, Integer page, Integer pagesize);

    void delete(List<Integer> ids);

    void add(Emp emp);

    void update(Emp emp);

    Emp findById(Integer id);

    void DeleteByDeptID(Integer id);
}
